function initEditorUpload(){
	if(UE===undefined){
		$('#btnPic').show();
		$('#btnPic_1').hide();
	}else{
		$('#btnPic').hide();
		$('#btnPic_1').show();
		var isHideEditor=true;
		if(window._hideEditor===undefined){
			isHideEditor=false;
		}else{
			if(objlen(isHideEditor)<1){
				isHideEditor=false;
			}
		}
		if(!isHideEditor){
			window._hideEditor = UE.getEditor('upload_ue');
			_hideEditor.ready(function(){
				_hideEditor.hide();
				_hideEditor.setDisabled();
				_hideEditor.addListener('beforeInsertImage', function (t,arg){
					batUploadString(arg);
				});
			});
		}
		
	}
}
function batUploadString(arg){
	var ipt = $('#batFileList');
	var isbat = ipt.length;
	var arr=[];
	for(var i=0,d=arg.length;i<d;i++){
		var dt = arg[i];
		var tit=dt.title,src = dt.src+'||'+dt.src;
		if(isbat>0){
			arr.push(dt.src+'||'+tit);
		}else{
			if(i==0){
				uploadPicList_Show(src,tit,1)
			}else{
				uploadPicList_Show(src,tit,0)
			}
		}
	}
	if(isbat>0){
		var val = ipt.val()
		ipt.val(val+arr.join("\n"))
	}
}
function uploadListPic(){
	try{
		var myImage = _hideEditor.getDialog("insertimage");
		myImage.open();
	}catch(e){
		alert('Ueditor编辑器初始化失败')
	}
}
function objlen(o){
	var j=0;
	for(var k in o) j++;
	return j;
}